package org.uim.cricket.entities.partnerships;

import org.uim.cricket.entities.batting.BattingInning;

public class Partnership {

	private FallOfWicket beginWicket = null;
	private FallOfWicket endWicket = null;
	
	private int wicketNo = 0;
	private int runs = -1;
	private int balls = -1;
	private BattingInning startPlayer = null;
	private BattingInning arrivedPlayer = null;
	private BattingInning outPlayer = null;
	private boolean notOut = false;
	private boolean retired = false;
	
	public void setEndWicket(FallOfWicket endWicket) {
		this.endWicket = endWicket;
	}

	public void setBeginWicket(FallOfWicket beginWicket) {
		this.beginWicket = beginWicket;
	}

	public FallOfWicket getEndWicket() {
		return endWicket;
	}

	public FallOfWicket getBeginWicket() {
		return beginWicket;
	}

	public void setWicketNo(int wicketNo) {
		this.wicketNo = wicketNo;
	}
	
	public int getWicketNo() {
		return wicketNo;
	}
	
	public void setRuns(int runs) {
        this.runs = runs;
    }
	
	public int getRuns() {
        return runs;
    }

	public void setBalls(int balls) {
        this.balls = balls;
    }
	
	public int getBalls() {
        return balls;
    }
	
	public void setStartPlayer(BattingInning startPlayer) {
		this.startPlayer = startPlayer;
	}
	
	public void setArrivedPlayer(BattingInning arrivedPlayer) {
		this.arrivedPlayer = arrivedPlayer;
	}
	
	public BattingInning getStartPlayer() {
		return startPlayer;
	}
	
	public BattingInning getArrivedPlayer() {
		return arrivedPlayer;
	}
	
	public void setRetired(boolean retired) {
		this.retired = retired;
	}
	
	public void setNotOut(boolean notOut) {
		this.notOut = notOut;
	}
	
	public boolean isRetired() {
		return retired;
	}
	
	public boolean isNotOut() {
		return notOut;
	}
	
	public void setOutPlayer(BattingInning outPlayer) {
		this.outPlayer = outPlayer;
	}
	
	public BattingInning getOutPlayer() {
		return outPlayer;
	}
}
